package com.piece.mall.vo;

import com.piece.mall.model.PmsSkuSaleAttrValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@ApiModel(value = "购物项")
public class CartItemVo {

    @ApiModelProperty(value = "skuId")
    private Long skuId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "销售属性")
    private List<PmsSkuSaleAttrValue> saleAttrValues;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "购买数量")
    private Integer count;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;
}
